// 节流
function throttle(ff, wait) {
    var timer = null
    return function() {
        if (timer) return
        timer = setTimeout(function() {
            ff()
            timer = null
        }, wait)
    }
}
export default throttle